<?php
/**
 * Created by PhpStorm.
 * User: junyv
 * Date: 2017/4/4
 * Time: 16:45
 */

namespace app\mobile\controller;


class Pages extends Base
{
    public function detail(){
        $cate = input('param.cate');
        if($cate){
            $info = db('one')->where(['cate_alias'=>$cate])->find();

            $this->assign('cate',$cate);
            $this->assign('info',$info);
            $this->assign('title',$info['title']);
        }else{
            return $this->fetch('public/404');
        }
        return $this->fetch();
    }
}